

<div class="content_filtro">
    <?php if($this->per_add){?>
    <div class="content-btn">
        <span>Novo</span><a href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'edit','id'=>'')); ?>">+</a>
    </div>
    <?php } ?>
    
</div>


<div class="content-list">
    
    <h2><?php echo $this->titulo;?></h2>
    
    <table id="tlist">
        <thead>
            <tr>
                <th>Nome</th>
                <th>Status Parcelamento</th>
                <th>Status Gerar Boleto</th>
                <th>Status</th>
                <th class="bc">&nbsp;</th>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($this->result as $row) { ?>
                <tr>  
                    <td align="left"><?php echo $row->FOR_NOM; ?></td>
                    <td><?php echo tools::returnStatus($row->FOR_STAPAR); ?></td>
                    <td><?php echo tools::returnSN($row->FOR_STABOL); ?></td>
                    <td><?php echo tools::returnStatus($row->FOR_STA); ?></td>
                    <td class="bc">
                        <?php if($this->per_edt){?><a class="btn-pdr" href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'edit', 'id' => $row->FOR_ID)); ?>">Editar</a><?php }?>
                        <?php if($this->per_del && $row->FOR_STA == 0){?><a class="btn-pdr" href="javascript:void(0);" onclick="list_delete('<?php echo $this->controller; ?>', <?php echo $row->FOR_ID ?>, $(this));">Deletar</a><?php }?>                        
                    </td>
                </tr>
            <?php } ?>
        </tbody>
    </table>
</div>
<?php echo $this->paginationControl($this->paginator, 'Sliding', 'pagination.phtml'); ?>